package test;
import java.util.Scanner;
public class Rollback {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String arr = sc.next();
        rollback(arr);

    }
    public static void rollback(String arr) {
        for(int i = arr.length()-1 ; i>=0;i--){
            char a = arr.charAt(i);
            System.out.println(a);
        }

    }
}
